]> dgit.raspbian.org Git - gnome-shell.git/commit
windowMenu: Check if monitorIndex is valid before using it
authorSam Spilsbury <sam@endlessm.com>
Wed, 11 Oct 2017 10:42:04 +0000 (18:42 +0800)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Thu, 28 Jun 2018 14:29:07 +0000 (16:29 +0200)
commitc9bf72c5c4e8a94ff66fd191cb79165bed2831e5
treeac31643ff53fd5f5752c34e4b9416409e274c363
parent5fe349d5ba0d81e79d6b9d5fa2a128cc706e818e
windowMenu: Check if monitorIndex is valid before using it

Calling meta_window_get_monitor on an unmanaged window may return
-1, so we need to check the return value.

https://bugzilla.gnome.org/show_bug.cgi?id=788882
js/ui/windowMenu.js